<template>
  <div id="app">
    <Layout>
      <Header :style="{position: 'fixed', width: '100%'}">
        <Menu mode="horizontal" theme="dark" active-name="1">
          <div class="layout-logo"></div>
          <div class="layout-nav">
            <MenuItem name="1">
              <Icon type="md-switch" size="24"/>
              连接
            </MenuItem>
            <MenuItem name="2">
              <Icon type="md-apps" size="24"/>
              数据
            </MenuItem>
            <MenuItem name="3">
              <Icon type="logo-codepen" size="24"/>
              信息
            </MenuItem>
            <MenuItem name="4">
              <Icon type="md-cog" size="24"/>
              配置
            </MenuItem>
            <MenuItem name="4">
              <Icon type="md-analytics" size="24"/>
              监控
            </MenuItem>
          </div>
        </Menu>
      </Header>
      <Content>
        <router-view></router-view>
      </Content>
      <!-- <Footer class="layout-footer-center">2019 &copy; RedisPlus CreateBy RedisPlus</Footer> -->
    </Layout>
  </div>
</template>

<script>
  export default {
    name: 'redis-plus'
  }
</script>

<style>
  .layout{
    border: 1px solid #d7dde4;
    background: #f5f7f9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
  }
  .layout-logo{
    width: 100px;
    height: 30px;
    background: #5b6270;
    border-radius: 3px;
    float: right;
    position: relative;
    top: 15px;
    left: 20px;
  }
  .layout-nav{
    width: 520px;
    margin: 0 auto;
    margin-left: 5px;
    font-size: 16px;
  }
  .layout-footer-center{
    text-align: center;
  }
</style>
